#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>

int man(void)
{
	char addr_p[16] = {0};
	struct in_addr addr_n;
	if(inet_pton(AF_INET, "10.224.71.45", &addr_n)!=1) 
	{
		perror("failed to convert");
		exit(1);
	}
	
	printf("address: %x\n", addr_n);
	
	if(inet_ntop(AF_INET, &addr_n, addr_pm, sizeof(addr_p))!=1) 
	{
		perror("failed to convert");
		exit(1);
	}
	printf("address: %s", addr_p);
	return 0;
}